package events
{
	import flash.display.InteractiveObject;
	import flash.events.Event;
	import flash.events.MouseEvent;
	
	import helpers.normal.ItemRender;
	
	public class DragEvent extends Event
	{
		public static const MY_DRAG_DROP : String = "myDragDrop";
		public static const MY_DRAG_COMPLETE : String = "myDragComplete";
		private var _source:ItemRender;
		private var _action:String;
		private var _isOwnDo:Boolean;
		public function DragEvent(type:String, source:ItemRender,action:String='none')
		{
			super(type);
			this._source = source;
			this._action = action;
			_isOwnDo = false;
		}
		
		public function ownDo():void
		{
			_isOwnDo = true;
		}
		
		public function get issOwnDo():Boolean
		{
			return _isOwnDo;
		}
		
		public function get source():ItemRender
		{
			return this._source;
		}
		
		public function get action():String
		{
			return _action;
		}

	}
}